//
//  FileUploadModel.m
//  MIS Cloud
//
//  Created by goldeney on 14-7-23.
//  Copyright (c) 2014年 goldeneye. All rights reserved.
//

#import "FileUploadModel.h"

@implementation FileUploadModel

@synthesize fileName;
@synthesize filePath;
@synthesize fileSize;
@synthesize sendSize;
@synthesize sendState;
@synthesize request;
@synthesize uploadResult;
@synthesize functionA;

- (NSDictionary*)getFileInfo
{
    NSData *xmlData = [uploadResult dataUsingEncoding:NSUTF8StringEncoding];
    NSError *error;
    NSDictionary *jsonDictionary = [NSJSONSerialization JSONObjectWithData:xmlData options:NSJSONReadingAllowFragments error:&error];
    if (error) return nil;
    
    return jsonDictionary;
}

@end
